package com.hotel.common.user.controller;


import com.hotel.common.vo.R;
import com.hotel.common.user.service.SmsLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 验证码日志表 前端控制器
 * </p>
 *
 * @author mz
 * @since 2024-06-15
 */
@RestController
@RequestMapping("/sms/")
public class SmsLogController {

    @Autowired
private SmsLogService smsLogService;


    @RequestMapping("/sendrcode")
    public R  sendrcode(@RequestParam("phone") String phone){

        return smsLogService.sendrcode(phone);

    }

    @RequestMapping("/logincode")
    public R logincode(@RequestParam("phone") String phone){
        return smsLogService.logincode(phone);
    }



    @RequestMapping("/find")
    public R find(@RequestParam("phone") String phone){

        return smsLogService.find(phone);

    }


}

